package com.zyong.design.pattern.state.case4;

/**
 * @program: zyong-design-pattern
 * @ClassName: End
 * @author: zyong
 * @create: 2024-03-25 00:33
 */
public class End implements State {
    @Override
    public void doProcess(StateContext stateContext) {
        System.out.println("End");
        stateContext.getProcessList().add("End");
    }

    @Override
    public State nextState(StateContext stateContext) {
        return null;
    }
}
